package com.chixing.day03_oop;

public class Person {
    private String personName;
    private int personAge;
    private String personGender;
    private String personMarry;

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public int getPersonAge() {
        return personAge;
    }

    public void setPersonAge(int personAge) {
        this.personAge = personAge;
    }

    public String getPersonGender() {
        return personGender;
    }

    public void setPersonGender(String personGender) {
        this.personGender = personGender;
    }

    public boolean getPersonMarry() {
        return true;
    }

    public boolean setPersonMarry(String personMarry) {
        this.personMarry = personMarry;
        if (personMarry=="未婚"){
            return true;
        }else {
            return false;
        }
    }


}
